﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam2.DAO;
using MockPrjTeam2.Entity;

namespace MockPrjTeam2.Biz
{
    public class BussinessBiz
    {
        BussinessDao dao = new BussinessDao();
        public List<Bussiness> getAllBussinessByKey(string bussName, string sicCode)
        {
            return dao.getAllBussinessByKey(bussName,sicCode);
        }
        public Bussiness getById(int id)
        {
            return dao.getById(id);
        }
        public bool addBussinessType(Bussiness buss)
        {
            return dao.addBussinessType(buss);
        }
        public bool updateBussinessType(Bussiness buss)
        {
            return dao.updateBussinessType(buss);
        }
    }
}